package com.yihr.yrd.dao.model;

import java.io.Serializable;
import java.util.Date;

public class YrdCustomer implements Serializable {
    //  信息ID，递增
    private Long msgId;

    //  客户姓名
    private String customerName;

    //  客户ID
    private String passportId;

    //  电话号码
    private String phone1;

    //  其他手机号
    private String phone2;

    //  年龄
    private Integer age;

    //  手机归属城市
    private String phoneAttributively;

    //  性别
    private String sex;

    //  预借金额（万）
    private Double borrowAmount;

    //  借款用途
    private String purpose;

    //  工资发放形式
    private String paymentForm;

    //  月工作收入（税后）
    private Double income;

    //  征信情况
    private String creditInvestigation;

    //  信用卡或银行贷款额度（万）
    private Double loanLimit;

    //  推荐模式
    private String recommendedMode;

    //  房产情况
    private String houseProperty;

    //  车产情况
    private String carProduction;

    //  是否已上传
    private Integer uploadState;

    //  创建时间
    private Date createAt;

    //  上传时间
    private Date uploadAt;

    private static final long serialVersionUID = 1L;

    public Long getMsgId() {
        return msgId;
    }

    public void setMsgId(Long msgId) {
        this.msgId = msgId;
    }

    public String getCustomerName() {
        return customerName;
    }

    public void setCustomerName(String customerName) {
        this.customerName = customerName;
    }

    public String getPassportId() {
        return passportId;
    }

    public void setPassportId(String passportId) {
        this.passportId = passportId;
    }

    public String getPhone1() {
        return phone1;
    }

    public void setPhone1(String phone1) {
        this.phone1 = phone1;
    }

    public String getPhone2() {
        return phone2;
    }

    public void setPhone2(String phone2) {
        this.phone2 = phone2;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getPhoneAttributively() {
        return phoneAttributively;
    }

    public void setPhoneAttributively(String phoneAttributively) {
        this.phoneAttributively = phoneAttributively;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Double getBorrowAmount() {
        return borrowAmount;
    }

    public void setBorrowAmount(Double borrowAmount) {
        this.borrowAmount = borrowAmount;
    }

    public String getPurpose() {
        return purpose;
    }

    public void setPurpose(String purpose) {
        this.purpose = purpose;
    }

    public String getPaymentForm() {
        return paymentForm;
    }

    public void setPaymentForm(String paymentForm) {
        this.paymentForm = paymentForm;
    }

    public Double getIncome() {
        return income;
    }

    public void setIncome(Double income) {
        this.income = income;
    }

    public String getCreditInvestigation() {
        return creditInvestigation;
    }

    public void setCreditInvestigation(String creditInvestigation) {
        this.creditInvestigation = creditInvestigation;
    }

    public Double getLoanLimit() {
        return loanLimit;
    }

    public void setLoanLimit(Double loanLimit) {
        this.loanLimit = loanLimit;
    }

    public String getRecommendedMode() {
        return recommendedMode;
    }

    public void setRecommendedMode(String recommendedMode) {
        this.recommendedMode = recommendedMode;
    }

    public String getHouseProperty() {
        return houseProperty;
    }

    public void setHouseProperty(String houseProperty) {
        this.houseProperty = houseProperty;
    }

    public String getCarProduction() {
        return carProduction;
    }

    public void setCarProduction(String carProduction) {
        this.carProduction = carProduction;
    }

    public Integer getUploadState() {
        return uploadState;
    }

    public void setUploadState(Integer uploadState) {
        this.uploadState = uploadState;
    }

    public Date getCreateAt() {
        return createAt;
    }

    public void setCreateAt(Date createAt) {
        this.createAt = createAt;
    }

    public Date getUploadAt() {
        return uploadAt;
    }

    public void setUploadAt(Date uploadAt) {
        this.uploadAt = uploadAt;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", msgId=").append(msgId);
        sb.append(", customerName=").append(customerName);
        sb.append(", passportId=").append(passportId);
        sb.append(", phone1=").append(phone1);
        sb.append(", phone2=").append(phone2);
        sb.append(", age=").append(age);
        sb.append(", phoneAttributively=").append(phoneAttributively);
        sb.append(", sex=").append(sex);
        sb.append(", borrowAmount=").append(borrowAmount);
        sb.append(", purpose=").append(purpose);
        sb.append(", paymentForm=").append(paymentForm);
        sb.append(", income=").append(income);
        sb.append(", creditInvestigation=").append(creditInvestigation);
        sb.append(", loanLimit=").append(loanLimit);
        sb.append(", recommendedMode=").append(recommendedMode);
        sb.append(", houseProperty=").append(houseProperty);
        sb.append(", carProduction=").append(carProduction);
        sb.append(", uploadState=").append(uploadState);
        sb.append(", createAt=").append(createAt);
        sb.append(", uploadAt=").append(uploadAt);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        YrdCustomer other = (YrdCustomer) that;
        return (this.getMsgId() == null ? other.getMsgId() == null : this.getMsgId().equals(other.getMsgId()))
            && (this.getCustomerName() == null ? other.getCustomerName() == null : this.getCustomerName().equals(other.getCustomerName()))
            && (this.getPassportId() == null ? other.getPassportId() == null : this.getPassportId().equals(other.getPassportId()))
            && (this.getPhone1() == null ? other.getPhone1() == null : this.getPhone1().equals(other.getPhone1()))
            && (this.getPhone2() == null ? other.getPhone2() == null : this.getPhone2().equals(other.getPhone2()))
            && (this.getAge() == null ? other.getAge() == null : this.getAge().equals(other.getAge()))
            && (this.getPhoneAttributively() == null ? other.getPhoneAttributively() == null : this.getPhoneAttributively().equals(other.getPhoneAttributively()))
            && (this.getSex() == null ? other.getSex() == null : this.getSex().equals(other.getSex()))
            && (this.getBorrowAmount() == null ? other.getBorrowAmount() == null : this.getBorrowAmount().equals(other.getBorrowAmount()))
            && (this.getPurpose() == null ? other.getPurpose() == null : this.getPurpose().equals(other.getPurpose()))
            && (this.getPaymentForm() == null ? other.getPaymentForm() == null : this.getPaymentForm().equals(other.getPaymentForm()))
            && (this.getIncome() == null ? other.getIncome() == null : this.getIncome().equals(other.getIncome()))
            && (this.getCreditInvestigation() == null ? other.getCreditInvestigation() == null : this.getCreditInvestigation().equals(other.getCreditInvestigation()))
            && (this.getLoanLimit() == null ? other.getLoanLimit() == null : this.getLoanLimit().equals(other.getLoanLimit()))
            && (this.getRecommendedMode() == null ? other.getRecommendedMode() == null : this.getRecommendedMode().equals(other.getRecommendedMode()))
            && (this.getHouseProperty() == null ? other.getHouseProperty() == null : this.getHouseProperty().equals(other.getHouseProperty()))
            && (this.getCarProduction() == null ? other.getCarProduction() == null : this.getCarProduction().equals(other.getCarProduction()))
            && (this.getUploadState() == null ? other.getUploadState() == null : this.getUploadState().equals(other.getUploadState()))
            && (this.getCreateAt() == null ? other.getCreateAt() == null : this.getCreateAt().equals(other.getCreateAt()))
            && (this.getUploadAt() == null ? other.getUploadAt() == null : this.getUploadAt().equals(other.getUploadAt()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getMsgId() == null) ? 0 : getMsgId().hashCode());
        result = prime * result + ((getCustomerName() == null) ? 0 : getCustomerName().hashCode());
        result = prime * result + ((getPassportId() == null) ? 0 : getPassportId().hashCode());
        result = prime * result + ((getPhone1() == null) ? 0 : getPhone1().hashCode());
        result = prime * result + ((getPhone2() == null) ? 0 : getPhone2().hashCode());
        result = prime * result + ((getAge() == null) ? 0 : getAge().hashCode());
        result = prime * result + ((getPhoneAttributively() == null) ? 0 : getPhoneAttributively().hashCode());
        result = prime * result + ((getSex() == null) ? 0 : getSex().hashCode());
        result = prime * result + ((getBorrowAmount() == null) ? 0 : getBorrowAmount().hashCode());
        result = prime * result + ((getPurpose() == null) ? 0 : getPurpose().hashCode());
        result = prime * result + ((getPaymentForm() == null) ? 0 : getPaymentForm().hashCode());
        result = prime * result + ((getIncome() == null) ? 0 : getIncome().hashCode());
        result = prime * result + ((getCreditInvestigation() == null) ? 0 : getCreditInvestigation().hashCode());
        result = prime * result + ((getLoanLimit() == null) ? 0 : getLoanLimit().hashCode());
        result = prime * result + ((getRecommendedMode() == null) ? 0 : getRecommendedMode().hashCode());
        result = prime * result + ((getHouseProperty() == null) ? 0 : getHouseProperty().hashCode());
        result = prime * result + ((getCarProduction() == null) ? 0 : getCarProduction().hashCode());
        result = prime * result + ((getUploadState() == null) ? 0 : getUploadState().hashCode());
        result = prime * result + ((getCreateAt() == null) ? 0 : getCreateAt().hashCode());
        result = prime * result + ((getUploadAt() == null) ? 0 : getUploadAt().hashCode());
        return result;
    }
}